﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplicationCultura.Pages
{
    public partial class eventos : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button4_Click1(object sender, EventArgs e)
        {
            try
            {
                HttpCookie cookie = new HttpCookie("idEvento");
                cookie.Value = this.DropDownList1.SelectedValue;
                Response.Cookies.Add(cookie);
                Response.Redirect("Eventos/detallesEvento.aspx");
            }
            catch (Exception)
            {
            }
        }

        protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            try
            {
                Response.Redirect("Eventos/nuevoevento.aspx");
            }
            catch (Exception)
            {
            }
        }

        protected void Button5_Click(object sender, EventArgs e)
        {
            try
            {
                HttpCookie cookie = new HttpCookie("idEvento");
                cookie.Value = this.DropDownList2.SelectedValue;
                Response.Cookies.Add(cookie);
                Response.Redirect("Actividades/actividadesevento.aspx");
            }
            catch (Exception)
            {
            }
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            try
            {
                HttpCookie idEvento=new HttpCookie("idEvento");
                idEvento.Value = this.DropDownList1.SelectedValue;
                Response.Cookies.Add(idEvento);
                Response.Redirect("Eventos/modificarevento.aspx");
            }
            catch (Exception)
            {
            }
        }

      

        
        
    }
}